﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OnlineSurveyReport.aspx.cs" Inherits="Rison.Web.zxdc.OnlineSurveyReport" %>
<%@ Register src="../ascx/WebHeader.ascx" tagname="WebHeader" tagprefix="uc1" %>
<%@ Register src="../ascx/WebFooter.ascx" tagname="WebFooter" tagprefix="uc2" %>
<%@ Register src="../ascx/Navigation.ascx" tagname="Navigation" tagprefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>在线调查</title>
    <link href="../style/css/style.css" rel="stylesheet" type="text/css" enableviewstate="false" />
        <script type="text/javascript">
        function ChangePageIndex(value)
        {
            document.getElementById("hidCurPageIndex").value=value;
            document.forms[0].submit();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <input type="hidden" id="hidCurPageIndex" name="hidCurPageIndex" runat="server" value="1" />
        <uc1:WebHeader ID="WebHeader1" runat="server" />
        
       <div id="main2">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td style="height:5px;_height:0px;"></td>
                </tr>
                <tr>
                    <td height="6" valign="top"><img src="<%=UrlBase2 %>/style/image/new_03.gif" width="1002" height="16" /></td>
                </tr>
                <tr>
                    <td height="6" valign="top" background="<%=UrlBase2 %>/style/image/new_06.gif" style="padding-left:10px; line-height:22px;"><img src="<%=UrlBase2 %>/style/image/wysq_07.gif" width="16" height="11" align="absmiddle" />当前位置：在线调查</td>
                </tr>
                <tr>
                    <td height="6" valign="top" background="<%=UrlBase2 %>/style/image/new_06.gif">
                        <table width="915" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                                <td valign="top">
                                    <div class="kong2"></div>
                                    <asp:GridView ID="gvData" runat="server" AllowPaging="True"  OnPageIndexChanging ="gvData_PageIndexChanging"
                                        AutoGenerateColumns="False" ShowHeader="false" PageSize="18" CellPadding="4" OnDataBound ="gvData_OnDataBound"
                                         GridLines="None" CssClass="newsl" Width="100%" >
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" BorderStyle="None"  />
                                        <RowStyle BackColor="#ffffff" Height="28px" Font-Size="12px" />
                                        <Columns>
                                            <asp:TemplateField ItemStyle-Width="15px" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle">
                                                <ItemTemplate>
                                                    <img alt="" src="<%=UrlBase2 %>/style/image/ico.gif" style="width:3px; height:3px; border:0;" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="标题" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="760px">
                                                <ItemTemplate>
                                                    <a href="OnlineSuveryDetail.aspx?key=<%# DataBinder.Eval(Container.DataItem, "voteid")%>">
                                                        <%# DataBinder.Eval(Container.DataItem, "votename")%></a>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="DeadLine" ItemStyle-CssClass="data" ItemStyle-Width="140px" HeaderText="发布日期" DataFormatString="{0:yyyy年MM月dd日}" />
                                        </Columns>
                                        <PagerStyle BackColor="#ffffff" ForeColor="White" HorizontalAlign="Center" CssClass="newsPager" />
                                        <SelectedRowStyle BackColor="#ffffff" Font-Bold="True" ForeColor="#333333" />
                                        <HeaderStyle BackColor="#ffffff" Font-Bold="True" ForeColor="White"  Height="28px"/>
                                        <EditRowStyle BackColor="#ffffff" />
                                        <AlternatingRowStyle BackColor="White" />
                                        <PagerTemplate>
                                            <table class="page" style="border:0px solid red;">
                                                <tr style="font-size:12px; font-family:宋体; border:0px;">
                                                    <td><img alt="上一页" src="<%=UrlBase2 %>/style/image/page/prePage.jpg" onclick="ChangePageIndex('p');" style="width:46px;height:15px;border:0px; cursor:pointer;" /></td>
                                                    <td>共<asp:Label ID="labRowCount" runat="server">1</asp:Label>条信息</td>
                                                    <td>第<asp:Label ID="labCurrentPage" runat="server">1</asp:Label>页</td>                        
                                                    <td>共<asp:Label ID="labPageCount" runat="server">2</asp:Label>页</td>
                                                    <td><img alt="下一页" src="<%=UrlBase2 %>/style/image/page/nextPage.jpg" onclick="ChangePageIndex('n');" style="width:46px;height:15px;border:0px; cursor:pointer;" /></td>
                                                    <td valign="middle"><asp:TextBox ID="txtGo" runat="server" Width="21px" Height="12px" MaxLength="4"></asp:TextBox></td>
                                                    <td><img alt="Go" src="<%=UrlBase2 %>/style/image/page/go2.jpg" onclick="ChangePageIndex('g');" style="width:29px;height:18px;border:0px; cursor:pointer;" /></td>
                                                </tr>
                                            </table>
                                        </PagerTemplate>
                                    </asp:GridView>
                                </td>
                            
                                <td width="50">&nbsp;</td>
                                <td width="222" valign="top">
                                    <div class="tupian"><img src="<%=UrlBase2 %>/style/image/tupian.jpg"></div>
                                    <div class="tupian"><img src="<%=UrlBase2 %>/style/image/tupian.jpg"></div>
                                    <div class="tupian"><img src="<%=UrlBase2 %>/style/image/tupian.jpg"></div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td height="6" valign="top"><img src="<%=UrlBase2 %>/style/image/new_07.gif" width="1002" height="10" /></td>
                </tr>
            </table>
        </div>
        <div class="kong2"></div> 
        
        <uc2:WebFooter ID="WebFooter1" runat="server" />
    </form>
</body>
</html>
